/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
const adminRouter = {
  path: '/admin',
  component: Layout,
  name: '系统管理',
  meta: {
    title: '系统管理',
    subtitle:'系统',
    icon: 'menu_system'
  },
  children: [
    {
      path: '/sysMch/list',
      component: () => import('@/views/sysMch/list'),
      name: 'sysMch-list',
      meta: { title: '商户管理',subtitle:'商户', icon: 'menu_sysMch', permissions: ['sysMch.query'] }
    },
    {
      path: '/sysMch/add',
      component: () => import('@/views/sysMch/add'),
      name: 'sysMch-add',
      meta: { title: '新增商户', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/sysMch/edit',
      component: () => import('@/views/sysMch/edit'),
      name: 'sysMch-edit',
      meta: { title: '修改商户', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/sysPlugin/list',
      component: () => import('@/views/sysPlugin/list'),
      name: 'sysPlugin-list',
      meta: { title: '插件安装', icon: 'menu_system' },
      hidden: true
    },
    {
      path: '/sysMenu/list',
      component: () => import('@/views/sysMenu/list'),
      name: 'sysMenu-list',
      meta: { title: '菜单管理',subtitle:'菜单', icon: 'menu_sysMenu', permissions: ['sysMenu.query'] }
    },
    {
      path: '/sysMenu/add',
      component: () => import('@/views/sysMenu/add'),
      name: 'sysMenu-add',
      meta: { title: '新增菜单', icon: 'menu_sysMenu' },
      hidden: true
    },
    {
      path: '/sysMenu/edit',
      component: () => import('@/views/sysMenu/edit'),
      name: 'sysMenu-edit',
      meta: { title: '修改菜单', icon: 'menu_sysMenu' },
      hidden: true
    },
    {
      path: '/sysIcon/index',
      component: () => import('@/views/sysIcon/index'),
      name: 'sysIcon-index',
      meta: { title: '素材图库',subtitle:'素材', icon: 'menu_sysIcon', permissions: ['sysIcon.query'] }
    },
    {
      path: '/sysTemplate/list',
      component: () => import('@/views/sysTemplate/list'),
      name: 'sysTemplate-list',
      meta: { title: '消息模版',subtitle:'消息', icon: 'menu_sysTemplate', permissions: ['sysTemplate.query'] }
    },
    {
      path: '/sysTemplate/add',
      component: () => import('@/views/sysTemplate/add'),
      name: 'sysTemplate-add',
      meta: { title: '新增模版', icon: 'menu_sysTemplate' },
      hidden: true
    },
    {
      path: '/sysTemplate/edit',
      component: () => import('@/views/sysTemplate/edit'),
      name: 'sysTemplate-edit',
      meta: { title: '修改模版', icon: 'menu_sysTemplate' },
      hidden: true
    },
    {
      path: '/sysDict/list',
      component: () => import('@/views/sysDict/list'),
      name: 'sysDict-list',
      meta: { title: '数据字典', subtitle:'字典',icon: 'menu_order', permissions: ['sysTemplate.query'] }
    },
    {
      path: '/sysReport/list',
      component: () => import('@/views/sysReport/list'),
      name: 'sysReport-list',
      meta: { title: '报表设置', subtitle:'报表',icon: 'menu_order', permissions: ['sysReport.query'] }
    },
    {
      path: '/sysReport/edit',
      component: () => import('@/views/sysReport/edit'),
      name: 'sysReport-edit',
      meta: { title: '修改报表', icon: 'menu_order', permissions: ['sysReport.edit'] },
      hidden: true
    },
    {
      path: '/sysReport/add',
      component: () => import('@/views/sysReport/add'),
      name: 'sysReport-add',
      meta: { title: '新增报表', icon: 'menu_order', permissions: ['sysReport.add'] },
      hidden: true
    },
    {
      path: '/sysJob/list',
      component: () => import('@/views/sysJob/list'),
      name: 'sysJob-list',
      meta: { title: '计划任务', subtitle:'计划',icon: 'menu_product', permissions: ['sysJob.query'] }
    },
    {
      path: '/sysJob/add',
      component: () => import('@/views/sysJob/add'),
      name: 'sysJob-add',
      meta: { title: '新增任务', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/sysJob/edit',
      component: () => import('@/views/sysJob/edit'),
      name: 'sysJob-edit',
      meta: { title: '修改任务', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/adPosition/list',
      component: () => import('@/views/adPosition/list'),
      name: 'adPosition-list',

      meta: {title: '广告位管理' ,subtitle:'广告管理',icon:'menu_article',permissions:['adPosition.query']}
    },
    {
      path: '/adPositionte/add',
      component: () => import('@/views/adPosition/add'),
      name: 'adPosition-add',
      meta: {title: '新增广告位' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/adPosition/edit',
      component: () => import('@/views/adPosition/edit'),
      name: 'adPosition-edit',
      meta: {title: '修改广告位' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/bank/list',
      component: () => import('@/views/bank/list'),
      name: 'bank-list',
      meta: {title: '银行管理' ,subtitle:'标签',icon:'menu_tag',permissions:['bank.query']}
    },
    {
      path: '/bank/add',
      component: () => import('@/views/bank/add'),
      name: 'bank-add',
      hidden: true,
      meta: {title: '新增银行' ,icon:'menu_desc'},

    },
    {
      path:'/bank/edit',
      component: () => import('@/views/bank/edit'),
      name: 'bank-edit',
      meta: {title: '修改页面管理' ,icon:'menu_desc'},
      hidden: true

    },
  ]
}
export default adminRouter
